package com.example.myapplication9.week4.jsjf;

public class ArrayListTest1 {

    public static void main(String[] args) {
        ArrayOrderedList list=new ArrayOrderedList();
        ArrayUnorderedList list1=new ArrayUnorderedList();
        list.add(5);
        list.add(10);
        list.add(25);
        System.out.println(list.first());
        System.out.println(list.last());
        list.add(11);
        System.out.println(list.toString());
        list.remove(11);
        System.out.println(list.toString());
        list.removeFirst();
        System.out.println(list.toString());
        list.removeLast();
        System.out.println(list.toString());

        list1.addToFront(11);
        list1.addToFront(10);
        list1.addToRear(12);
        list1.addAfter(15,12);
        System.out.println(list1.toString());
        System.out.println(list1.contains(5));
    }
}
